package com.bs.blogspace.controller;

import com.bs.blogspace.model.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class testController {
    private static Map map = new HashMap();
    @GetMapping("/test")
    public Result<Map> get(){
        Result result = new Result();
        map.put("message","我是接口测试");
        result.setData(map);
        return result;
    }

}
